#! /bin/bash

echo 'Test Case 1: 39/39'
p=0
f=0
if [java -jar Grades.jar 39 39 -eq fail]; then
    let $p+=1
     
else
     let $f+=1
fi


java -jar Grades.jar 40 40 
echo 'Expected output Component Fail '
java -jar Grades.jar 25 25
echo 'Expected output  fail'
java -jar Grades.jar 50 79
echo 'Expected output  pass'
java -jar Grades.jar 49 80
echo 'Expected output  pass'
java -jar Grades.jar 20 60
echo 'Expected output  fail'
java -jar Grades.jar 55 55
echo 'Expected output  pass'
java -jar Grades.jar 100 100
echo 'Expected output  pass with distinction'
echo 'Expected output fail'
java -jar Grades.jar 100 100
echo 'Expected output  pass with distinction'

echo 'passed:' $p
echo 'failed:' $f
